package com.iogogogo.activity.domain.dto;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * Created by tao.zeng on 2022/6/15.
 */
@Data
public class ActivityDTO<S, T> implements Serializable {

    /**
     * 源对象.
     */
    private S source;

    /**
     * 目标对象.
     */
    private T target;

    /**
     * 操作结果.
     */
    private Integer status;

    /**
     * 操作时间.
     */
    private LocalDateTime timestamp;

    /**
     * 活动类型.
     */
    private Map<String, Object> type;

    /**
     * 做的事情类型.
     */
    private Map<String, Object> event;

    /**
     * 活动描述.
     */
    private String description;

    private String format;
}
